package org.jeecg.modules.charge.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.charge.entity.ChargeTaxControlPanel;
import org.jeecg.modules.charge.mapper.ChargeTaxControlPanelMapper;
import org.jeecg.modules.charge.service.IChargeTaxControlPanelService;
import org.jeecg.modules.charge.vo.CheckOutMangroup;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Map;

/**
 * @Description: 开票项目
 * @Author: jeecg-boot
 * @Date:   2019-07-11
 * @Version: V1.0
 */
@Service
public class ChargeTaxControlPanelServiceImpl extends ServiceImpl<ChargeTaxControlPanelMapper, ChargeTaxControlPanel> implements IChargeTaxControlPanelService {

    @Autowired
    private ChargeTaxControlPanelMapper chargeTaxControlPanelMapper;

    @Override
    public Page<ChargeTaxControlPanel> listByParams(Page<ChargeTaxControlPanel> page,ChargeTaxControlPanel chargeTaxControlPanel) {
        return page.setRecords(chargeTaxControlPanelMapper.listByParams(page,chargeTaxControlPanel));
    }

    @Override
    public Long duplicateCheckCountSql(CheckOutMangroup checkOutMangroup) {
        return chargeTaxControlPanelMapper.duplicateCheckCountSql(checkOutMangroup);
    }

    @Override
    public Long duplicateCheckCountSqlNoDataId(CheckOutMangroup checkOutMangroup) {
        return chargeTaxControlPanelMapper.duplicateCheckCountSqlNoDataId(checkOutMangroup);
    }
}
